#ifndef TAILOR_H
#define TAILOR_H

#include "qurl.h"
#include <QObject>
#include <QRect>
#include <QBuffer>
#include <QPixmap>
#include <QScreen>

class Tailor : public QObject
{
    Q_OBJECT

    Q_PROPERTY(QString url READ url WRITE setUrl NOTIFY urlChanged FINAL)
public:
    explicit Tailor(QObject *parent = nullptr);
    Q_INVOKABLE void coordinates(const double &pictureW, const double &x, const double &y, const double &w, const double &h);
    ~Tailor();

    QString url() const;
    void setUrl(const QString &newUrl);

signals:
    void urlChanged();
    void sig_head_portrait_finish();
    void qmlClose();

private:
    QString m_url;
};

#endif // TAILOR_H
